package com.zyh.websocket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zyh.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ZYH
 * @version 1.0
 * @date 2025-03-22
 */

// 对应 t_message 表
@TableName("t_message")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Message extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "message_id", type = IdType.AUTO)
    private Long messageId;
    private Long senderId;
    private Long receiverId;
    private String content;
    private String type; // 0 系统/1 私聊
    private String subType;
    private String routeTag;
    private Long relatedId;
    private String isRead;
    private Date sendTime;
    private String createBy;
    private Date createTime;
    private String delFlag;
}
